package com.wen.cim.common.util;

import com.wen.cim.common.pojo.RouteInfo;

/**
 * @author 文洪武
 * @title: RouteInfoParseUtil
 * @projectName cim-master
 * @description: TODO
 * @date 2021/11/2213:33
 */
public class RouteInfoParseUtil {

    public static RouteInfo parse(String info) {

        String[] serverInfo = info.split(":");
        RouteInfo routeInfo = new RouteInfo(serverInfo[0], Integer.parseInt(serverInfo[1]), Integer.parseInt(serverInfo[2]));
        return routeInfo;
    }
}
